home *** CD-ROM | disk | FTP | other *** search
/ Beginning Mac Programming / Beginning Mac Programming.bin / pc / Open Me for REALbasic 3 / REALbasic 3.2 / Example Projects / Reusable Classes_Code / User Interface / CTimeDisplay / Read Me (CTimeDisplay) < prev   
Encoding:
Text File  |  1999-10-10  |  3.9 KB  |  106 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10. Welcome to R.T.D, the REALBASIC TIME DISPLAY.
  11.  
  12. R.T.D puts up a timedisplay in the form 'hh:mm:ss' or 'mm:ss:ff' (where ff is frames) or a short version in the form 'hh:mm' or 'mm:ss'.
  13. R.T.D is very simple to use: Its simplest form is if you call the 'me.ShowDateTime' - method once a second to display the current time. 
  14.  
  15. By default R.T.D is completely selfcontained and doesn’t depend on anything. In this case it brings up a standard time-display.
  16.  
  17. OTOH you are free to use your own pictures for the digits. Simply pass a picture as parameter to the ‘SetDigits’ method and there it is. The picture must contain digits in this order “0123456789:”  
  18.  
  19. Picture-Example
  20.  
  21.  
  22.  
  23. Digits must have equal width in order for the class to display the bounds correctly.
  24.  
  25.  
  26. Properties:
  27.  
  28. digitcolor as Color  // color of the hilited segments of a digit
  29. shadowcolor as Color // color of the unhilited segments of a digit
  30. backcolor as Color // color of the background of the RTD. (white is transparent by default)
  31.  
  32. digits as picture  // if you want to show custom digits, simply save a picture of your custom digits here
  33.  
  34. curtime  as  integer    // the current time shown in RTDTicks
  35.  
  36. Methods:
  37.  
  38.  
  39. ShowTime             // simply shows the current time
  40. ShowTimeString   s as string    // ‘hh:mm:ss’-formatted string, allowed chars “0123456789:”
  41. ShowCurrentTime           // Wrapper Script to show the current time according to the current mode  (long or short)
  42.  
  43. SetDigits             newDigits as picture   // pass a picture of digits to be shown as RTD
  44.                                                                 // if you pass NIL as parameter, the RTD will switch to INTERNAL mode
  45. SetDigitsResource  resID as integer      // Wrapper to set the digits to a ‘PICT’-resource with this id
  46.  
  47. SetDigitColor      newColor as color     // changes the color of the digits (while you could set these color properties manually)
  48.                                                                                                                // it is safer to call this method to handle the required action
  49. SetShadowColor   newColor as color     // changes the color of the unhilited segments of a digit
  50. SetBackColor       newColor as color    // changes the background color of a RTD.
  51.  
  52. SetColors           newDigitColor, newShadowColor, newBackColor as color           // Wrapper script to change all colors at once 
  53.  
  54. PenSize                                                // returns the current penSize
  55. SetPenSize           newSize as integer  // in a RTD width & height of the pen is equal; this methods sets both values at once
  56.  
  57. InvertClock          // Wrapper to invert an internal clock
  58.  
  59.  
  60. R.T.D - CONTENTS
  61.  
  62. Along with this ‘Read Me’ file you should find some more files:
  63.  
  64. - RTD Projectfile
  65. This is a quick introduction to the RIC-API (Application Programming Interface). You will get an idea of how easy Internet Connectivity is, when using RIC.
  66.  
  67. - CTimeDisplay - class
  68. CTimeDisplay - class is the main part of RTD. It contains the routines which do the ‘hard’ work.
  69.  
  70. - RTD-Demo
  71. This demo shows various RTDs and give you an idea how to use the CTimeDisplay class. 
  72.  
  73.  http://www.silent-movie-media.com/
  74.  
  75.  
  76. RTD - REQUIREMENTS
  77. RTD has no special system requirements.
  78.  
  79. NOTE
  80. For the sake of speed, CTimeDisplay does not validate the passed string in ‘DrawTimeString’. So be sure to pass only allowed chars, if you want CTimeDisplay to operate properly.
  81.  
  82. Version History
  83. 1.0.2  -  10 Oct 1999  
  84. -  upon request (Francine Smit) a minus (-) sign is added to dynamic RTD's. Resource-based RTD's are not affected by this change.
  85. ---
  86. 1.0.1  -  10 Aug 1999  
  87. -  fixed a bug where auto-adjust caused a wrong resize if a RTD's color was changed
  88.     (Thanks Søren Olin)
  89. -------------------
  90. 1.0.0  -  4 Aug 1999  -  initial release
  91.  
  92.  
  93.  
  94. ©1999 Andy Fuchs
  95. --silent movie media
  96.  
  97. BUGS  &  COMMENTS
  98.  
  99. If you find a bug in R.T.D or have any other comment, please send your report to andy@silent-movie-media.com .
  100.  
  101. R.T.D is ©1999 - Andy Fuchs
  102. Time is ©0 - God
  103.  
  104.  
  105.